﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGeCurveCurveInt3d : OdGeEntity3d
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGeCurveCurveInt3d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeCurveCurveInt3d_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGeCurveCurveInt3d obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGeCurveCurveInt3d()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGeCurveCurveInt3d(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdGeCurveCurveInt3d() : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_0(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeVector3d planeNormal, OdGeTol tol) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_1(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeVector3d.getCPtr(planeNormal), OdGeTol.getCPtr(tol)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeVector3d planeNormal) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_2(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeVector3d.getCPtr(planeNormal)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_3(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2, OdGeVector3d planeNormal, OdGeTol tol) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_4(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2), OdGeVector3d.getCPtr(planeNormal), OdGeTol.getCPtr(tol)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2, OdGeVector3d planeNormal) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_5(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2), OdGeVector3d.getCPtr(planeNormal)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_6(OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d(OdGeCurveCurveInt3d source) : this(GlobalsPINVOKE.new_OdGeCurveCurveInt3d__SWIG_7(OdGeCurveCurveInt3d.getCPtr(source)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurve3d curve1()
		{
			OdGeCurve3d result = new OdGeCurve3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_curve1(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurve3d curve2()
		{
			OdGeCurve3d result = new OdGeCurve3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_curve2(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void getIntRanges(OdGeInterval range1, OdGeInterval range2)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getIntRanges(this.swigCPtr, OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeVector3d planeNormal()
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_planeNormal(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeTol tolerance()
		{
			OdGeTol result = new OdGeTol(GlobalsPINVOKE.OdGeCurveCurveInt3d_tolerance(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public int numIntPoints()
		{
			int result = GlobalsPINVOKE.OdGeCurveCurveInt3d_numIntPoints(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGePoint3d intPoint(int intNum)
		{
			OdGePoint3d result = new OdGePoint3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_intPoint(this.swigCPtr, intNum), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void getIntParams(int intNum, out double param1, out double param2)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getIntParams(this.swigCPtr, intNum, out param1, out param2);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getPointOnCurve1(int intNum, OdGePointOnCurve3d intPnt)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getPointOnCurve1(this.swigCPtr, intNum, OdGePointOnCurve3d.getCPtr(intPnt));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getPointOnCurve2(int intNum, OdGePointOnCurve3d intPnt)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getPointOnCurve2(this.swigCPtr, intNum, OdGePointOnCurve3d.getCPtr(intPnt));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getIntConfigs(int intNum, ref OdGe.OdGeXConfig config1wrt2, ref OdGe.OdGeXConfig config2wrt1)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getIntConfigs(this.swigCPtr, intNum, ref config1wrt2, ref config2wrt1);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isTangential(int intNum)
		{
			bool result = GlobalsPINVOKE.OdGeCurveCurveInt3d_isTangential(this.swigCPtr, intNum);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isTransversal(int intNum)
		{
			bool result = GlobalsPINVOKE.OdGeCurveCurveInt3d_isTransversal(this.swigCPtr, intNum);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double intPointTol(int intNum)
		{
			double result = GlobalsPINVOKE.OdGeCurveCurveInt3d_intPointTol(this.swigCPtr, intNum);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public int overlapCount()
		{
			int result = GlobalsPINVOKE.OdGeCurveCurveInt3d_overlapCount(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool overlapDirection()
		{
			bool result = GlobalsPINVOKE.OdGeCurveCurveInt3d_overlapDirection(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void getOverlapRanges(int overlapNum, OdGeInterval range1, OdGeInterval range2)
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_getOverlapRanges(this.swigCPtr, overlapNum, OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void changeCurveOrder()
		{
			GlobalsPINVOKE.OdGeCurveCurveInt3d_changeCurveOrder(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeCurveCurveInt3d orderWrt1()
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_orderWrt1(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d orderWrt2()
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_orderWrt2(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeVector3d planeNormal, OdGeTol tol)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_0(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeVector3d.getCPtr(planeNormal), OdGeTol.getCPtr(tol)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeVector3d planeNormal)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_1(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeVector3d.getCPtr(planeNormal)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_2(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2, OdGeVector3d planeNormal, OdGeTol tol)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_3(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2), OdGeVector3d.getCPtr(planeNormal), OdGeTol.getCPtr(tol)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2, OdGeVector3d planeNormal)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_4(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2), OdGeVector3d.getCPtr(planeNormal)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d set(OdGeCurve3d curve1, OdGeCurve3d curve2, OdGeInterval range1, OdGeInterval range2)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_set__SWIG_5(this.swigCPtr, OdGeCurve3d.getCPtr(curve1), OdGeCurve3d.getCPtr(curve2), OdGeInterval.getCPtr(range1), OdGeInterval.getCPtr(range2)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeCurveCurveInt3d Assign(OdGeCurveCurveInt3d crvCrvInt)
		{
			OdGeCurveCurveInt3d result = new OdGeCurveCurveInt3d(GlobalsPINVOKE.OdGeCurveCurveInt3d_Assign(this.swigCPtr, OdGeCurveCurveInt3d.getCPtr(crvCrvInt)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
